/*    */ package handling.login.handler;
/*    */ 
/*    */ import client.MapleClient;
/*    */ import tools.data.input.LittleEndianAccessor;
/*    */ import tools.packet.LoginPacket;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class DeleteCharHandler
/*    */ {
/*    */   public static void handlePacket(LittleEndianAccessor slea, MapleClient c) {
/* 20 */     String Secondpw_Client = slea.readMapleAsciiString();
/* 21 */     int charId = slea.readInt();
/* 22 */     if (!c.login_Auth(charId) || !c.isLoggedIn()) {
/* 23 */       c.getSession().close();
/*    */       
/*    */       return;
/*    */     } 
/* 27 */     if (c.getSecondPassword() != null && 
/* 28 */       Secondpw_Client == null) {
/* 29 */       c.getSession().close();
/*    */       
/*    */       return;
/*    */     } 
/* 33 */     byte state = (byte)c.deleteCharacter(charId);
/* 34 */     c.announce(LoginPacket.deleteCharResponse(charId, state));
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\login\handler\DeleteCharHandler.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */